/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package negocio;

import Persistencia.Convenio;
import Persistencia.Estudiante;
import controladores.ConvenioFacadeLocal;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.EJBContext;
import javax.ejb.Stateless;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.transaction.UserTransaction;

/**
 *
 * @author Angel
 */
@Stateless(mappedName="ConvenioEJB")
@TransactionManagement(TransactionManagementType.BEAN)
public class ConvenioSrv implements ConvenioInterface {

    @Resource
    private EJBContext eJBContext;
    private UserTransaction userTransaction;
    @EJB
    private ConvenioFacadeLocal convenioSessionBean;

    @Override
    public Convenio consultarConvenio(Estudiante estudiante) {
        return convenioSessionBean.consultarPorEstudiante(estudiante);
    }
}
